<?php
/**
 * $ModDesc
 * 
 * @version		$Id: helper.php $Revision
 * @package		modules
 * @subpackage	mod_lofflashcontent
 * @copyright	Copyright (C) JAN 2010 LandOfCoder.com <@emai:landofcoder@gmail.com>. All rights reserved.
 * @license		GNU General Public License version 2
 */
// no direct access
defined('_JEXEC') or die;

// Include the syndicate functions only once
require_once dirname(__FILE__).DS.'helper.php';
$list = modLofSlideContentHelper::getList( $params );

modLofSlideContentHelper::loadMediaFiles( $params, $module );
$formatter = $params->get( 'style_displaying', 'title' );
require( JModuleHelper::getLayoutPath($module->module) );
?>
<script type="text/javascript">
try{_lofmain =  $('lofbreakingnews<?php echo $module->id; ?>');
	new LofBreakingNews( _lofmain, { mainItemClass:'.lof-breakingnew-item',
									 interval:<?php echo (int)$params->get('interval', '3000'); ?>,
									 layoutStyle:'<?php echo $params->get('layout_style','hrright');?>',
									 fxObject:{ transition:<?php echo $params->get( 'effect', 'Fx.Transitions.Quad.easeInOut' );?>, 
												duration:<?php echo (int)$params->get('duration', '700')?>} } 
	).registerButtonsControl( 'click', { next	  :_lofmain.getElement('.lof-button-next'),
										 previous :_lofmain.getElement('.lof-button-previous')}
	).start( true );
}catch( ex ){ // alert( 'Error runtime: The LofSlideNews can not work' ); 
}

</script>